var BookmarksTreeClick2Tab = 
{
    bookmarksView : null,

    init : function ()
    {
        TMP_Bookmark.init();

        this.bookmarksView = document.getElementById("bookmarks-view");
        eval("this.bookmarksView.openItemClick = " + this.bookmarksView.openItemClick.toString().replace(
          'var browserTarget = whereToOpenLink(aEvent);',
          'var browserTarget = whereToOpenLinkTabmix(aEvent, prefStringTMBookmark, selection, this.db);'
        ));

        eval("this.bookmarksView.openItemKey = " + this.bookmarksView.openItemKey.toString().replace(
          'BookmarksCommand.openBookmark(this._selection, "current", this.db)',
          '{var browserTarget = whereToOpenLinkTabmix(null, prefStringTMBookmark, this._selection, this.db); BookmarksCommand.openBookmark(this._selection, browserTarget, this.db);}'
        ));

    },

    deinit : function ()
    {
        eval("this.bookmarksView.openItemClick = " + this.bookmarksView.openItemClick.toString().replace(
          'var browserTarget = whereToOpenLinkTabmix(aEvent, prefStringTMBookmark, selection, this.db);',
          'var browserTarget = whereToOpenLink(aEvent);'
        ));
        eval("this.bookmarksView.openItemKey = " + this.bookmarksView.openItemKey.toString().replace(
          '{var browserTarget = whereToOpenLinkTabmix(aEvent, prefStringTMBookmark, this._selection, this.db); BookmarksCommand.openBookmark(this._selection, browserTarget, this.db);}',
          'BookmarksCommand.openBookmark(this._selection, "current", this.db)'
        ));
    }
}
